var row =
	{ 
		init : function()
			{
		        this.nome = new Ext.form.TextField
		            ({
		                fieldLabel: 'Nome',
		                name: 'data[Usuario][nome]',
		                allowBlank: false,
		                width: 350
		            });
		        
		        this.login = new Ext.form.TextField
		            ({
		                fieldLabel: 'Login',
		                name: 'data[Usuario][login]',
		                allowBlank: false,
		                width: 350
		            });
		        
		        this.senha = new Ext.form.TextField
		            ({
		                fieldLabel: 'Senha',
		                name: 'data[Usuario][senha]',
		                inputType: 'password',
						allowBlank: (_PHP_.action != 'admin_add' ? true : false),
		                width: 350
		            });
		        
				var beforeSubmit = function()
					{
						formX.un('beforeaction', beforeSubmit);
						
						if(!row.senha.isDirty())
						{
							formX.doSubmit();
						}
						else
						{
							row.senha.setValue(hex_sha1(row.senha.getValue()));
							
							var delayer = new Ext.util.DelayedTask();
							delayer.delay(500, function()
								{
									if(row.senha.isDirty())
									{
										formX.doSubmit();
									}
									else
									{
										delayer.delay(500);
									}
								}, this);
						}
					};  
		        formX.on('beforeaction', beforeSubmit);
					
				formX.add(this.nome, this.login, this.senha);
				formX.render();
			}
	};